<?php

//定义应用常量
define('APP_NAME', 'appAdmin');
//定义路径常量
define('ROOT_PATH', __DIR__);
define('APP_PATH', ROOT_PATH.'/'.APP_NAME);
define('SYS_PATH', ROOT_PATH.'/System');
define('LIB_PATH', ROOT_PATH.'/Libraries');
define('HELP_PATH', ROOT_PATH.'/Helpers');
define('RESOURCE_PATH', ROOT_PATH.'/Resource');
//定义配置文件路径常量
define('CONFIG_PATH', APP_PATH.'/config');

//加载应用核心文件
require_once SYS_PATH.'/App.php';

//加载composer自动加载文件
require_once ROOT_PATH.'/vendor/autoload.php';

$app = \system\App::singleton();
$app->initial();
$app->getResponse()->send();